<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="org/jquery.min.js"></script>
    <script src="org/angular.min.js"></script>
</head>
<style>
    .ng-cloak { display : none; }
</style>
<body ng-cloak class="ng-cloak" ng-app="app" ng-controller="ctrl">
<ul>
    <li ng-repeat="v in data" ng-bind="v.username"></li>
</ul>
</body>
</html>
<script>
    angular.module('app', []).controller('ctrl', ['$scope', function ($scope) {
        $scope.data = [];
        $.get('http://localhost/api/server/index.php?s=api/user/getThree', function (res) {
            $scope.data = res.data;
            $scope.$apply();
        }, 'json');
    }])
</script>










